//存储Token
export const setUserInfo = (userInfo) => {
  localStorage.setItem('userInfo', userInfo)
}
//获取Token
export const getUserInfo = () => {
  return localStorage.getItem("userInfo")
}
//清除本地存储的token
export const removeUserInfo = () => {
  localStorage.removeItem("userInfo")
}
export const removeQuestionList = () => {
  localStorage.setItem("questionList",JSON.stringify([])); // 清空缓存数据
  localStorage.setItem("questionList2",JSON.stringify([])); // 清空缓存数据
}
